package com.zdkj.subway.support.service.impl;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zdkj.subway.support.dto.out.SwMessageDTO;
import com.zdkj.subway.support.entity.SwMessage;
import com.zdkj.subway.support.mapper.SwMessageMapper;
import com.zdkj.subway.support.service.SwMessageService;
import lombok.AllArgsConstructor;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 站内消息
 *
 * @author cui_com
 * @date 2020-08-04 18:28:42
 */
@Service
@AllArgsConstructor
public class SwMessageServiceImpl extends ServiceImpl<SwMessageMapper, SwMessage> implements SwMessageService {
    private SwMessageMapper swMessageMapper;

    @Override
    public Integer updateReviewByIds(List<Integer> ids) {
        return swMessageMapper.updateReviewByIds(ids);
    }

    @Override
    public IPage<SwMessageDTO> queryMessageDetailByPage(IPage page, Integer deptId, Wrapper queryWrapper) {
        return swMessageMapper.queryDetailByPage(page, deptId,queryWrapper);
    }
}
